﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DH.Core
{
   public static  class DbHelper
    {
        static DbHelper()
        {
            //var dbType=  Global.Configuration["db:DbType"];
            //var dbConStr = Global.Configuration["db:ConnString"];
            //var ormType = Global.Configuration["db:ORMType"];

            //DbType = dbType;
            //DbConnectionString = dbConStr;
            //ORMType = ormType;
        }

        /// <summary>
        /// 数据库类型
        /// </summary>
         public static string DbType {
            get {
                return Global.Configuration["db:DbType"]; 
            }
            
        }
        /// <summary>
        /// 数据库连接字符串
        /// </summary>
         public static string DbConnectionString {
            get {
                return Global.Configuration["db:ConnString"];
            }
         }
        /// <summary>
        /// ORM 类型
        /// </summary>
         public static string ORMType {
            get {
                return Global.Configuration["db:ORMType"];
            }

        }

         
    }
}
